<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<p>为使用 {{ include.connector.name }} {{ include.connector.category }}，以下依赖在使用自动化构建工具（如 Maven
	或 SBT）构建的工程和带有 SQL JAR 的 SQL 客户端时都必须提供。</p>

{% comment %}
The 'liquify' filter makes it possible to include liquid variables such as e.g. site.version.
{% endcomment %}

{% if include.connector.versions == nil %}
<table>
	<thead>
	<tr>
		<th style="text-align: left">Maven 依赖</th>
		<th style="text-align: left">SQL 客户端 JAR</th>
	</tr>
	</thead>
	<tbody>
	<tr>
		<td style="text-align: left"><code class="highlighter-rouge">{{ include.connector.maven | liquify }}</code></td>
		{% if include.connector.built-in %}
		<td style="text-align: left">Built-in</td>
		{% elsif site.is_stable %}
		{% if include.connector.sql-url != nil %}
		<td style="text-align: left"><a href="{{ include.connector.sql-url | liquify }}">下载</a></td>
		{% else %}
		<td style="text-align: left">目前无 SQL JAR 可用</td>
		{% endif %}
		{% else %}
		<td style="text-align: left">只在稳定版本可用</td>
		{% endif %}
	</tr>
	</tbody>
</table>
{% else %}
<table>
	<thead>
	<tr>
		<th style="text-align: left">{{ include.connector.name }} 版本</th>
		<th style="text-align: left">Maven 依赖</th>
		<th style="text-align: left">SQL 客户端 JAR</th>
	</tr>
	</thead>
	<tbody>
	{% for version in include.connector.versions %}
	<tr>
		<td style="text-align: left">{{ version.version | liquify }}</td>
		<td style="text-align: left"><code class="highlighter-rouge">{{ version.maven | liquify }}</code></td>
		{% if include.connector.built-in %}
		<td style="text-align: left">内置</td>
		{% elsif include.connector.no-sql-jar %}
		{% elsif site.is_stable %}
		{% if version.sql-url != nil %}
		<td style="text-align: left"><a href="{{ version.sql-url | liquify }}">下载</a></td>
		{% else %}
		<td style="text-align: left">目前无 SQL JAR 可用</td>
		{% endif %}
		{% else %}
		<td style="text-align: left">只在稳定版本可用</td>
		{% endif %}
	</tr>
	{% endfor %}
	</tbody>
</table>
{% endif %}
